package top.iflyoung.cim.route.api.vo.req;

import top.iflyoung.cim.common.req.BaseRequest;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * @author liguiyang
 * @description 分组群聊
 * @sine 1.8
 * @date 2021/9/119:55
 **/
public class GroupChatReqVo extends BaseRequest {
    @NotNull(message = "groupId 不能为空")
    @ApiModelProperty(required = true, value = "groupId", example = "ca2cd00c-0b1a-11ec-9427-0a80ff2603de")
    private Long groupId;

    @NotNull(message = "userId 不能为空")
    @ApiModelProperty(required = true, value = "userId", example = "1545574049323")
    private Long userId;


    @NotNull(message = "msg 不能为空")
    @ApiModelProperty(required = true, value = "msg", example = "hello")
    private String msg;


    public GroupChatReqVo() {
    }

    public GroupChatReqVo(Long userId, Long groupId, String msg) {
        this.groupId = groupId;
        this.userId = userId;
        this.msg = msg;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "GroupChatReqVo{" +
                "groupId='" + groupId + '\'' +
                ", userId='" + userId + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
